home *** CD-ROM | disk | FTP | other *** search
- -- background: 3056 from stack: in
- -- bmap block id: 4331
- -- flags: 0000
- -- background id: 0
- -- name:
-
-
- -- part 10 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=35 top=74 right=86 bottom=139
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: Last
-
-
- -- part 23 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=142 top=74 right=86 bottom=246
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: FIRST
-
-
- -- part 26 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=115 top=93 right=105 bottom=163
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: I.D.
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=310 top=137 right=160 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Social Studies
-
-
- -- part 2 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=310 top=163 right=188 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: SCIENCE
-
-
- -- part 3 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=311 top=191 right=216 bottom=507
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: HEALTH
-
-
- -- part 4 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=60 top=188 right=212 bottom=252
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: PENMANSHIP
-
-
- -- part 5 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=60 top=162 right=185 bottom=251
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LANGUAGE
-
-
- -- part 6 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=60 top=135 right=159 bottom=250
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: SPELLING
-
-
- -- part 7 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=60 top=110 right=133 bottom=249
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: READING
-
-
- -- part 11 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=310 top=98 right=134 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: MATH
-
-
- -- part 12 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=314 top=70 right=83 bottom=386
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: DATE
-
-
- -- part 22 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=342 top=236 right=278 bottom=497
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 27 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=387 top=66 right=84 bottom=511
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: IMPORT DATA
- ----- HyperTalk script -----
-
-
- on mouseUp
- Global Id
- Global Subject
- Global N
- Global Data
- Global Subj
- Global Lastname
- Global Firstname
- Global Cardname
- Global Fname
- open file grades
- put FIELD 3 into Cardname
-
- repeat forever
- repeat
- read from file GRADES until return
- beep 1
- if char 1 of it is return then
- repeat while char 1 of it is return
- read from file grades until return
- end repeat
- end if
- if char 1 of it is tab then
- repeat while char 1 of it is tab
- read from file grades until return
- end repeat
- end if
- if char 1 of it is " " then
- repeat while char 1 of it is " "
- read from file grades until return
- end repeat
- end if
- if char 1 of it = "" then
- beep 3
- close file fname
- exit mouseUp
- end if
- put it into data
-
- put offset (tab,data) into num
- put char 1 to (num) of Data into subj
- if subj contains "Read" then put "READING" into n
- if subj contains "Spell" then put "SPELLING" into n
- if subj contains "Language" then put "LANGUAGE" into n
- if subj contains "Penmanship" then put "PENMANSHIP" into n
- if subj contains "Math" then put "MATH" into n
- if subj contains "Science" then put "SCIENCE" into n
- if subj contains "Social Studies" then put "SOCIAL STUDIES" into n
- if subj contains "Health" then put "HEALTH" into n
- else
- put offset(tab,Data) into num --gets num (until tab)
- if num <> 0 then
- delete char 1 to num of data --delete LASTNAME
- put offset(tab,Data) into num --gets num (until tab)
- end if
- if num <> 0 then
- delete char 1 to num of data -- DELETE FIRSTNAME
- put offset(tab,Data) into num --gets num (until tab)
- end if
- if num <> 0 then
- put char 1 to (num -1 ) of data into id
- delete char 1 to num of data -- DELETE ID
- end if
- end if
- if Cardname = ID then
- beep 2
- put data into field n
- put the date into field "date"
-
- end if
- end repeat
- end repeat
- close file GRADES
- end mouseUp
-
-